﻿@{
    Layout = null;
}
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>社会信息查询系统</title>
    <style type="text/css">
        body
        {
            margin: 0;
            height: 100%;
            overflow: hidden;
        }
    </style>

    <script language="javascript" type="text/javascript">
        function clearunloadfunction() {
            onbeforeunload = "";
        }

        //设置iframe高度自适应
        function SetCwinHeight() {
            var iframeid = document.getElementById("leftmenu"); //iframe id  
            if (document.getElementById) {
                if (iframeid && !window.opera) {
                    if (iframeid.contentDocument && iframeid.contentDocument.body.offsetHeight) {
                        iframeid.height = iframeid.contentDocument.body.offsetHeight;
                    } else if (iframeid.Document && iframeid.Document.body.scrollHeight) {
                        iframeid.height = iframeid.Document.body.scrollHeight;
                    }
                }
            }
        }
        //将页面高度加入到url中，用于框架页显示时高度自适应
        function setHash() {

            var hashH = document.documentElement.scrollHeight - 76;
            document.getElementById("leftmenu").style.height = hashH;
        }

        function resizeBody() {
            var hashH = document.documentElement.clientHeight;
            if (hashH <= 0) {
                hashH = document.documentElement.scrollHeight;
            }
            hashH = hashH - 76;
            document.getElementById("leftmenu").style.height = hashH;
        }

    </script>

</head>
<body onresize="resizeBody()">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" style="height: 100%">
        <tr id="a">
            <td height="30px">
                <iframe src="@Url.Action("Top")" name="topmenu" scrolling="no" id="topmenu" width="100%" frameborder="0" height="30px"></iframe>
            </td>
        </tr>
        <tr>
            <td height="100%">
                <table width="100%" border="0" cellspacing="0" cellpadding="0" style="height: 100%">
                    <tr>
                        <td width="150" id="b">
                            <table width="150" border="0" cellspacing="0" cellpadding="0" style="height: 100%">
                                <tr>
                                    <td height="100%">
                                        <iframe  src="@Url.Action("Left")" name="leftmenu" scrolling="no" frameborder="0" id="leftmenu" onload="setHash();"  width="190"></iframe>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td width="100%" id="c">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0" style="height: 100%">
                                <tr>
                                    <td width="7" rowspan="2">
                                        <iframe src="@Url.Action("Split")" name="frmBoardLeft" scrolling="no" style="height: 100%" width="7" frameborder="0"></iframe>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="100%">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0" style="height: 100%">
                                            <tr>
                                                <td width="100%">
                                                    <table width="100%" border="0" cellspacing="0" cellpadding="0" style="height: 100%">
                                                        <tr>
                                                            <td height="100%" width="99%" align="center">
                                                                <iframe src="@Url.Action("Content")" name="content" scrolling="auto" style="width: 99%; height: 100%;" frameborder="0"></iframe>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr id="d">
            <td height="25px">
                <iframe src="@Url.Action("Buttom")" name="frmBorderBottom" scrolling="no" id="frmBorderBottom" width="100%" frameborder="0" height="25px"></iframe>
            </td>
        </tr>
    </table>
</body>
</html>
